package com.naizhuai.util;

import com.naizhuai.Model.db.user.PersonUserBean;

/**
 * 参数实体类
 * Created by code_han on 2018/1/29.
 */

public class ConstantsParams {


    public final static String APPLICATION_ID = "com.naizhuai";

    public static final  int    TIME_ONE_SECOND                = 1000;
    public static final  int    TIME_ONE_MINUTE                = 60*TIME_ONE_SECOND;
    public static final  int    TIME_ONE_HOUR                  = 60*TIME_ONE_MINUTE;
    public static final  int    USER_MODE_DELAY_TIME           = 11*TIME_ONE_SECOND;
    public static final  int    MONITOR_TRIGGER_TIMER          = 10*TIME_ONE_SECOND;
    public static final  int    MONITOR_CHECK_SETP             = 5*TIME_ONE_SECOND;
    //	public static final  int    ASK_SERVER_TRIGGER_TIMER       = 1*TIME_ONE_HOUR;
//	public static final  int    ASK_SERVER_CHECK_SETP          = 1*TIME_ONE_HOUR;
    public static final  int    ASK_SERVER_TRIGGER_TIMER       = 30*TIME_ONE_SECOND;
    public static final  int 	ASK_SERVER_TRIGGER_TIMER_DEBUG = 15*TIME_ONE_SECOND;
    public static final  int    ASK_SERVER_CHECK_SETP          = 10*TIME_ONE_MINUTE;
    public static final  int 	ASK_SERVER_CHECK_SETP_DEBUG	   = 1*TIME_ONE_MINUTE;

    public static final  int    UPDATE_TRIGGER_TIMER           = 1*TIME_ONE_MINUTE;
    public static final  int    UPDATE_CHECK_SETP              = 3*TIME_ONE_HOUR;

    public static final  int    ADVIEW_TRIGGER_TIMER           = 5*TIME_ONE_SECOND;
    public static final  int    ADVIEW_CHECK_SETP              = 10*TIME_ONE_SECOND;


    //公共参数
    public final static String SESSION_ID_KEY = "sid";
    public final static String USER_ID_KEY = "uid";
    public final static String PLATFORM_KEY = "platform";
    public final static String APP_VERSION_KEY = "version";
    public final static String COMPANY_ID = "companyId";
    //时间戳
    public final static String NONCE_KEY = "nonce";
    public final static String APP_CHANNEL_KEY = "channel";
    public final static String CLIENT_SYSTEM_VERSION = "c_systemVersion";
    public final static String CLIENT_MAC_ADDRESS = "c_macAddress";
    public final static String CLIENT_MODEL = "c_model";
    public final static String CLIENT_IDENTIFY = "c_identify";
    public final static String NETWORK_TYPE = "c_networkType";
    public final static String CLIENT_PHONE_NUMBER = "c_phone";
    public final static String SIGN = "sign";

    public static String[] PARAMS_KEYS = new String[]{USER_ID_KEY, SESSION_ID_KEY, PLATFORM_KEY, APP_VERSION_KEY,
            COMPANY_ID, NONCE_KEY, APP_CHANNEL_KEY, CLIENT_SYSTEM_VERSION, CLIENT_MAC_ADDRESS, CLIENT_MODEL, CLIENT_IDENTIFY,
            NETWORK_TYPE, CLIENT_PHONE_NUMBER};


    public static final int PLATFORM_PHONE_ANDROID = 2;

    public final static String PRIVATE_KEY = "^$^TN($V%%IGa*&QfDE*s5#3##36#$*H";

    public final static String LOGIN_KEY = "IjIve05FPmxwUHdoKEp2eyhXPSY=";

    public final static String NONE_PARSE_CHAR = "+";

    public final static String PREF_SORTING_COLUMN = "sorting_column";



    public static int getAskServerTriggerTimer(){
        if(NaizhuAILog.DEBUG){
            return ASK_SERVER_TRIGGER_TIMER_DEBUG;
        }else{
            return ASK_SERVER_TRIGGER_TIMER;
        }
    }

//    public static final int[]


}
